<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class Task extends Model
{
    use HasDateTimeFormatter;

    protected $table = 'task';

    const TYPE_XS = 1;
    const TYPE_SJ = 2;

    const TYPE = [
        self::TYPE_XS => '悬赏任务',
        self::TYPE_SJ => '赏金任务',
    ];

    const PLATFORM_DIDI = 1;
    const PLATFORM_JTK = 2;
    const PLATFORM = [
        self::PLATFORM_DIDI => '滴滴',
        self::PLATFORM_JTK => '聚推客',
    ];

    const ACTION_WX = 1;
    const ACTION_DY = 2;
    const ACTION_GG = 3;
    const ACTION = [
        self::ACTION_WX => '转发微信',
        self::ACTION_DY => '发布抖音',
        self::ACTION_GG => '观看广告',
    ];

    const STATUS_OPEN = 1;
    const STATUS_ClOSE = 0;
    const STATUS = [
        self::STATUS_OPEN => '开启',
        self::STATUS_ClOSE => '关闭',
    ];
}
